package com.baizhi.jdkProxy;

public class JDKProxyTest {
    public static void main(String[] args) {
        //真实角色
        Actor actor = new Actor("刘亦菲");

        //代理工具类生成代理角色
        ProxyUtil proxyUtil = new ProxyUtil();
        Management 刘永超 = (Management) proxyUtil.newProxyInstance(actor);
        //刘永超.film();

        //刘永超.eat();
        刘永超.dance();

    }
}
